﻿
                                  
                         <div class="col-md-12">
								<!-- BOX -->
								<div class="box border green">
									<div class="box-title">
										<h4><i class="fa fa-table"></i>Dynamic Data Tables</h4>
										<div class="tools hidden-xs">
											<a href="#box-config" data-toggle="modal" class="config">
												<i class="fa fa-cog"></i>
											</a>
											<a href="javascript:;" class="reload">
												<i class="fa fa-refresh"></i>
											</a>
											<a href="javascript:;" class="collapse">
												<i class="fa fa-chevron-up"></i>
											</a>
											<a href="javascript:;" class="remove">
												<i class="fa fa-times"></i>
											</a>
										</div>
									</div>
									<div class="box-body">
										<div id="datatable1_wrapper" class="dataTables_wrapper form-inline" role="grid"><div class="row"><div class="col-sm-12"><div class="pull-right"><div id="datatable1_filter" class="dataTables_filter"><label><input class="form-control input-sm" placeholder="Search" aria-controls="datatable1" type="text"></label></div></div><div class="pull-left"><div class="dataTables_length" id="datatable1_length"><label>Show <select class="form-control input-sm" aria-controls="datatable1" size="1" name="datatable1_length"><option selected="selected" value="10">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option></select> Rows</label></div></div><div class="clearfix"></div></div></div><table aria-describedby="datatable1_info" id="datatable1" class="datatable table table-striped table-bordered table-hover dataTable" border="0" cellpadding="0" cellspacing="0">
											<thead>
												<tr role="row">
                        <th aria-label="Rendering engine: activate to sort column descending" aria-sort="ascending" style="width:150px;" colspan="1" rowspan="1" aria-controls="datatable1" tabindex="0" role="columnheader" class="sorting_asc">id</th>
                        <th aria-label="Browser: activate to sort column ascending" style="width:490px;" colspan="1" rowspan="1" aria-controls="datatable1" tabindex="0" role="columnheader" class="sorting">属性名称</th>
                        <th aria-label="Platform(s): activate to sort column ascending" style="width: 352px;" colspan="1" rowspan="1" aria-controls="datatable1" tabindex="0" role="columnheader" class="hidden-xs sorting">属性值</th>
                        <th aria-label="Platform(s): activate to sort column ascending" style="width: 352px;" colspan="1" rowspan="1" aria-controls="datatable1" tabindex="0" role="columnheader" class="hidden-xs sorting">属性类型</th>

												<th aria-label="CSS grade: activate to sort column ascending" style="width: 189px;" colspan="1" rowspan="1" aria-controls="datatable1" tabindex="0" role="columnheader" class="hidden-xs sorting">操作</th>
												</tr>
											</thead>
											
											
										<tbody aria-relevant="all" aria-live="polite" role="alert">
										  <?php foreach($date as $r):?>
										          <tr class="gradeA odd">
													<td filed='id' class="sorting_1"><?php echo $r['id']?></td>
													<td filed='id' class="sorting_1"><?php echo $r['attr_name']?></td>
													<td filed='id' class="sorting_1"><?php echo $r['attr_value']?></td>
													<td filed='title' class="text"><?php echo $r['attr_type']==0?'单选':'唯一（用户手动录入)'?>
													</td>
													


													<td width="250" class="center hidden-xs ">


                                                     <a class="btn btn-default" href="<?php U('admin/attr/update',array('id'=>$r['id']));?>"><i class="fa  fa-pencil"></i> 修改</a>


													 <!-- <a class="btn btn-default" href="index.php?a=news&c=del&id=<?php echo $r['id']?>"  onclick="return confirm('是否要删除');"><i class="fa fa-trash-o"></i> 删除</a> -->

                                                     <a onclick="return confirm('是否要删除！');" class="btn btn-default del" href="<?php U('admin/attr/del',array('id'=>$r['id']))?>"  "><i class="fa fa-trash-o"></i> 删除</a>





													</td>
												  </tr>
										  <?php endforeach; ?>
												</tbody></table><div class="row"><div class="col-sm-12"><div class="pull-left"><div id="datatable1_info" class="dataTables_info">Showing 1 to 10 of 57 entries</div></div><div class="pull-right"><div id="datatable1_paginate" class="dataTables_paginate paging_bs_full">

	<ul class="pagination">

	


	</ul>
												</div></div><div class="clearfix"></div></div></div></div>
									</div>
								</div>
								<!-- /BOX -->
							</div>
<script src="public/admin/js/jquery/jquery-2.0.3.min.js"></script>
<script type="text/javascript">
$(function(){

	
})
</script>	
